<%@ page language="java" pageEncoding="UTF-8"%>

<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>
<%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html:html lang="true">
<head>
	<html:base />
	<title>post_list.jsp</title>

	<meta http-equiv="pragma" content="no-cache" />
	<meta http-equiv="cache-control" content="no-cache" />
	<meta http-equiv="expires" content="0" />
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3" />
	<meta http-equiv="description" content="This is my page" />
	<script type="text/javascript"
		src="<%=request.getContextPath()%>/js/base.js"></script>
	<link rel="stylesheet" type="text/css"
		href="<%=request.getContextPath()%>/css/base_orange.css" />
</head>
<body>
	<html:form action="/post">
		<table class="title1">
			<tr>
				<td class="title1_td1">
					帖子管理
				</td>
				<td class="title1_td2">
					<input class="button_2zi" type="button" value="删 除"
						onclick="dosubmit(this.form, '../post.do?method=deletePosts&searchFlag=1');" />
					<input class="button_6zi" type="button" value="返回版块列表"
						onclick="dosubmit(this.form, '../board.do?method=getBoardsByPage&searchFlag=1');" />
				</td>
			</tr>
		</table>
		<table class="table1">
			<tr>
				<td class="td100">
					标题：
					<html:text property="title" size="15"></html:text>
					&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;
					<html:submit styleClass="button_2zi"
						onclick="dosubmit(this.form, '../post.do?method=getPostsByPage&searchFlag=1');">查 询</html:submit>
				</td>
			</tr>
		</table>
		<table class="table2">
			<tr>
				<th>
					<input type="checkbox" onclick="selectAll('id',this.checked)" />
					<html:hidden property="boardId" />
				</th>
				<th>
					标题
				</th>
				<th>
					发帖人id
				</th>
				<th>
					发帖人
				</th>
				<th>
					帖子内容
				</th>
				<th>
					发帖时间
				</th>
				<th>
					最后回帖时间
				</th>
				<th>
					是否精华
				</th>
				<th>
					是否置顶
				</th>
				<th>
					是否锁定
				</th>
				<th>
					是否隐藏
				</th>
			</tr>
			<logic:iterate id="iter" name="postFormList">
				<tr>
					<td>
						<html:checkbox property="id" value="${iter.id}" />
					</td>
					<td>
						<a href="<%=request.getContextPath()%>/admin/bbs/post.do?method=getRepliesByPage&parentId=${iter.id}&searchFlag=1">${iter.title}</a>
					</td>
					<td>
						${iter.userName}
					</td>
					<td>
						${iter.nickName}
					</td>
					<td>
						${iter.content}
					</td>
					<td>
						${iter.createTimeStr}
					</td>
					<td>
						${iter.lastReplyTimeStr}
					</td>
					<td>
						${iter.eliteStr}
					</td>
					<td>
						${iter.topStr}
					</td>
					<td>
						${iter.canReplyStr}
					</td>
					<td>
						${iter.enabledStr}
					</td>
				</tr>
			</logic:iterate>
		</table>
		<jsp:include page="/admin/core/page_info/page_info.jsp" />
	</html:form>
</body>
</html:html>

